package csel.controller.commands;

import csel.model.Entity;
import csel.model.Model;
import csel.model.GameCommand;

public class StopCommand implements GameCommand
{
	private Entity entity;

	//constructs a new Stop command
	public StopCommand(Model model)
	{
		this.entity = model.getPlayerEntity();
	}
	
	//calls the stop method on entity
	public void execute()
	{
		entity.stop();
		System.out.println("[MODEL] the stop command has been executed");
	}

}